#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>

void* print_thread_name(void *ptr){
	printf("Thread name: %s\n", ptr);
	return NULL;
}

int main(void){
	pthread_t thread1, thread2;
	char* message1 = "This is thread1";
	char* message2 = "This is thread2";
	
	pthread_create(&thread1, NULL, print_thread_name, (void *) message1);
	pthread_create(&thread2, NULL, print_thread_name, (void *) message2);

	pthread_join(thread1, NULL);
	pthread_join(thread2, NULL);
	printf("end\n");
}
